home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 501-525 / disk_509 / multi_player / sources / window.h < prev   
C/C++ Source or Header  |  1992-05-06  |  7KB  |  228 lines

  1.  
  2. SHORT BorderVectors1[] = {
  3.     0,0,
  4.     42,0,
  5.     42,15,
  6.     0,15,
  7.     0,0
  8. };
  9. struct Border Border1 = {
  10.     -1,-1,    /* XY origin relative to container TopLeft */
  11.     3,0,JAM1,    /* front pen, back pen and drawmode */
  12.     5,    /* number of XY vectors */
  13.     BorderVectors1,    /* pointer to XY vectors */
  14.     NULL    /* next border in list */
  15. };
  16.  
  17. struct IntuiText IText1 = {
  18.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  19.     15,3,    /* XY origin relative to container TopLeft */
  20.     NULL,    /* font pointer or NULL for default */
  21.     "?",    /* pointer to text */
  22.     NULL    /* next IntuiText structure */
  23. };
  24.  
  25. struct Gadget Gadget5 = {
  26.     NULL,    /* next gadget */
  27.     274,13,    /* origin XY of hit box relative to window TopLeft */
  28.     41,14,    /* hit box width and height */
  29.     NULL,    /* gadget flags */
  30.     RELVERIFY,    /* activation flags */
  31.     BOOLGADGET,    /* gadget type flags */
  32.     (APTR)&Border1,    /* gadget border or image to be rendered */
  33.     NULL,    /* alternate imagery for selection */
  34.     &IText1,    /* first IntuiText structure */
  35.     NULL,    /* gadget mutual-exclude long word */
  36.     NULL,    /* SpecialInfo structure */
  37.     NULL,    /* user-definable data */
  38.     NULL    /* pointer to user-definable data */
  39. };
  40.  
  41. SHORT BorderVectors2[] = {
  42.     0,0,
  43.     34,0,
  44.     34,15,
  45.     0,15,
  46.     0,0
  47. };
  48. struct Border Border2 = {
  49.     -1,-1,    /* XY origin relative to container TopLeft */
  50.     3,0,JAM1,    /* front pen, back pen and drawmode */
  51.     5,    /* number of XY vectors */
  52.     BorderVectors2,    /* pointer to XY vectors */
  53.     NULL    /* next border in list */
  54. };
  55.  
  56. struct IntuiText IText2 = {
  57.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  58.     10,4,    /* XY origin relative to container TopLeft */
  59.     NULL,    /* font pointer or NULL for default */
  60.     "-",    /* pointer to text */
  61.     NULL    /* next IntuiText structure */
  62. };
  63.  
  64. struct Gadget Gadget4 = {
  65.     &Gadget5,    /* next gadget */
  66.     5,13,    /* origin XY of hit box relative to window TopLeft */
  67.     33,14,    /* hit box width and height */
  68.     NULL,    /* gadget flags */
  69.     RELVERIFY,    /* activation flags */
  70.     BOOLGADGET,    /* gadget type flags */
  71.     (APTR)&Border2,    /* gadget border or image to be rendered */
  72.     NULL,    /* alternate imagery for selection */
  73.     &IText2,    /* first IntuiText structure */
  74.     NULL,    /* gadget mutual-exclude long word */
  75.     NULL,    /* SpecialInfo structure */
  76.     NULL,    /* user-definable data */
  77.     NULL    /* pointer to user-definable data */
  78. };
  79.  
  80. SHORT BorderVectors3[] = {
  81.     0,0,
  82.     67,0,
  83.     67,15,
  84.     0,15,
  85.     0,0
  86. };
  87. struct Border Border3 = {
  88.     -1,-1,    /* XY origin relative to container TopLeft */
  89.     3,0,JAM1,    /* front pen, back pen and drawmode */
  90.     5,    /* number of XY vectors */
  91.     BorderVectors3,    /* pointer to XY vectors */
  92.     NULL    /* next border in list */
  93. };
  94.  
  95. struct IntuiText IText3 = {
  96.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  97.     23,3,    /* XY origin relative to container TopLeft */
  98.     NULL,    /* font pointer or NULL for default */
  99.     ">>",    /* pointer to text */
  100.     NULL    /* next IntuiText structure */
  101. };
  102.  
  103. struct Gadget Gadget3 = {
  104.     &Gadget4,    /* next gadget */
  105.     202,13,    /* origin XY of hit box relative to window TopLeft */
  106.     66,14,    /* hit box width and height */
  107.     NULL,    /* gadget flags */
  108.     RELVERIFY+GADGIMMEDIATE,    /* activation flags */
  109.     BOOLGADGET,    /* gadget type flags */
  110.     (APTR)&Border3,    /* gadget border or image to be rendered */
  111.     NULL,    /* alternate imagery for selection */
  112.     &IText3,    /* first IntuiText structure */
  113.     NULL,    /* gadget mutual-exclude long word */
  114.     NULL,    /* SpecialInfo structure */
  115.     NULL,    /* user-definable data */
  116.     NULL    /* pointer to user-definable data */
  117. };
  118.  
  119. SHORT BorderVectors4[] = {
  120.     0,0,
  121.     71,0,
  122.     71,15,
  123.     0,15,
  124.     0,0
  125. };
  126. struct Border Border4 = {
  127.     -1,-1,    /* XY origin relative to container TopLeft */
  128.     3,0,JAM1,    /* front pen, back pen and drawmode */
  129.     5,    /* number of XY vectors */
  130.     BorderVectors4,    /* pointer to XY vectors */
  131.     NULL    /* next border in list */
  132. };
  133.  
  134. struct IntuiText IText4 = {
  135.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  136.     22,3,    /* XY origin relative to container TopLeft */
  137.     NULL,    /* font pointer or NULL for default */
  138.     "NEW",    /* pointer to text */
  139.     NULL    /* next IntuiText structure */
  140. };
  141.  
  142. struct Gadget Gadget2 = {
  143.     &Gadget3,    /* next gadget */
  144.     127,13,    /* origin XY of hit box relative to window TopLeft */
  145.     70,14,    /* hit box width and height */
  146.     NULL,    /* gadget flags */
  147.     RELVERIFY,    /* activation flags */
  148.     BOOLGADGET,    /* gadget type flags */
  149.     (APTR)&Border4,    /* gadget border or image to be rendered */
  150.     NULL,    /* alternate imagery for selection */
  151.     &IText4,    /* first IntuiText structure */
  152.     NULL,    /* gadget mutual-exclude long word */
  153.     NULL,    /* SpecialInfo structure */
  154.     NULL,    /* user-definable data */
  155.     NULL    /* pointer to user-definable data */
  156. };
  157.  
  158. SHORT BorderVectors5[] = {
  159.     0,0,
  160.     78,0,
  161.     78,15,
  162.     0,15,
  163.     0,0
  164. };
  165. struct Border Border5 = {
  166.     -1,-1,    /* XY origin relative to container TopLeft */
  167.     3,0,JAM1,    /* front pen, back pen and drawmode */
  168.     5,    /* number of XY vectors */
  169.     BorderVectors5,    /* pointer to XY vectors */
  170.     NULL    /* next border in list */
  171. };
  172.  
  173. struct IntuiText IText5 = {
  174.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  175.     24,3,    /* XY origin relative to container TopLeft */
  176.     NULL,    /* font pointer or NULL for default */
  177.     "STOP",    /* pointer to text */
  178.     NULL    /* next IntuiText structure */
  179. };
  180.  
  181. struct Gadget Gadget1 = {
  182.     &Gadget2,    /* next gadget */
  183.     43,13,    /* origin XY of hit box relative to window TopLeft */
  184.     77,14,    /* hit box width and height */
  185.     NULL,    /* gadget flags */
  186.     RELVERIFY,    /* activation flags */
  187.     BOOLGADGET,    /* gadget type flags */
  188.     (APTR)&Border5,    /* gadget border or image to be rendered */
  189.     NULL,    /* alternate imagery for selection */
  190.     &IText5,    /* first IntuiText structure */
  191.     NULL,    /* gadget mutual-exclude long word */
  192.     NULL,    /* SpecialInfo structure */
  193.     NULL,    /* user-definable data */
  194.     NULL    /* pointer to user-definable data */
  195. };
  196.  
  197. #define GadgetList1 Gadget1
  198.  
  199. struct NewWindow NewWindowStructure1 = {
  200.     100,107,    /* window XY origin relative to TopLeft of screen */
  201.     320,31,    /* window width and height */
  202.     0,1,    /* detail and block pens */
  203.     GADGETDOWN+GADGETUP+REQSET+CLOSEWINDOW+REQVERIFY+REQCLEAR+VANILLAKEY,    /* IDCMP flags */
  204.     WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE+NOCAREREFRESH,    /* other window flags */
  205.     &Gadget1,    /* first gadget in gadget list */
  206.     NULL,    /* custom CHECKMARK imagery */
  207.     "Multi_Player",    /* window title */
  208.     NULL,    /* custom screen pointer */
  209.     NULL,    /* custom bitmap */
  210.     5,5,    /* minimum width and height */
  211.     -1,-1,    /* maximum width and height */
  212.     WBENCHSCREEN    /* destination screen type */
  213. };
  214.  
  215.  
  216. void HandleEvent(object)
  217. APTR object;
  218. {
  219.   if (object == (APTR)&Gadget1) { quit(object); return; }
  220.   if (object == (APTR)&Gadget2) { new(object); return; }
  221.   if (object == (APTR)&Gadget3) { fast(object); return; }
  222.   if (object == (APTR)&Gadget4) { ico(object); return; }
  223.   if (object == (APTR)&Gadget5) { info(object); return; }
  224. }
  225. #define HANDLEEVENT HandleEvent
  226.  
  227. /* end of PowerWindows source generation */
  228.